"""
项目配置文件
包含所有LLM模型和系统配置
"""

class Config:
    """项目配置类"""
    
    def __init__(self):
        # LLM模型配置
        self.llm = {
            "model_name": "doubao-seed-1-6-flash-250715",
            "api_key": "fac35d08-6699-4089-bc48-0211fb9d5940",
            "base_url": "https://ark.cn-beijing.volces.com/api/v3/"
        }
        
        # Thinking模型配置（用于复杂推理）
        self.llm_thinking = {
            "model_name": "doubao-seed-1-6-flash-250715",
            "api_key": "fac35d08-6699-4089-bc48-0211fb9d5940",
            "base_url": "https://ark.cn-beijing.volces.com/api/v3/"
        }
        
        # 视觉模型配置（用于图像理解）
        self.vlm = {
            "model_name": "doubao-seed-1-6-flash-250715",
            "api_key": "fac35d08-6699-4089-bc48-0211fb9d5940",
            "base_url": "https://ark.cn-beijing.volces.com/api/v3/"
        }
        
        # 系统配置
        self.system = {
            "max_retries": 3,
            "retry_delay": 20.0,
            "timeout": 60.0,
            "project_root": "E:/work/lang-graph"
        }
        
        # 剧本分析配置
        self.script_analysis = {
            "episode_split_markers": [
                "第一集", "第二集", "第三集", "第四集", "第五集",
                "第1集", "第2集", "第3集", "第4集", "第5集",
                "Episode 1", "Episode 2", "Episode 3", "Episode 4", "Episode 5"
            ],
            "max_characters": 10,
            "summary_max_length": 100,
            "background_max_length": 200
        }

# 创建全局配置实例
cfg = Config()
